#include <iostream>
using namespace std;

int main(){
    auto f=[](int a)->int{return a+1;};
    cout <<f(3)<<endl;
    int x=3,y=2;
    auto g=[=]{return x+y;};
    cout<<g()<<endl;
    return 0;
}
